
package jpa;
import java.io.Serializable;

import javax.persistence.*;

/**
 * JPA Class ShippingAddressJPA
*/
@Entity
@Table(name="practicalcase.shippingaddress")

public class ShippingAddressJPA implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String address;
	private String city;
	private String postalCode;
//	private CustomerJPA customer;
	
	/**
	 * Class constructor methods
	 */
	public ShippingAddressJPA(){
		super();
	}
	public ShippingAddressJPA(int id, String address, String city, String postalCode){		
		this.id = id;
		this.address = address;
		this.city = city;
		this.postalCode = postalCode;
	}
	
	/**
	 *  Methods get/set the fields of database
	 *  Id Primary Key field
	 */
	@Id
	public int getid(){
		return this.id;
	}
	public void setid(int id){
		this.id = id;
	}
	public String getAddress(){
		return this.address;
	}
	public void setAddress(String address){
		this.address = address;
	}
	public String getCity(){
		return this.city;
	}
	public void setCity(String city){
		this.city = city;
	}
	public String getPostalCode(){
		return this.postalCode;
	}
	public void setPostalCode(String postalCode){
		this.postalCode = postalCode;
	}
}